package com.hgdp.medicalexamination.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hgdp.medicalexamination.entity.DicMarryJob;
import com.hgdp.medicalexamination.mapper.DicMarryJobMapper;
import com.hgdp.medicalexamination.service.DicMarryJobService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @param 
 * @author hgdp
 * @date 2020-07-30 10:36:49
 */

@Service
@AllArgsConstructor
public class DicMarryJobServiceImpl extends ServiceImpl<DicMarryJobMapper, DicMarryJob> implements DicMarryJobService {

	@Override
	public IPage<DicMarryJob> queryPage(Page page, DicMarryJob dicMarryJob) {
		IPage<DicMarryJob> pages =baseMapper.selectPage(page, Wrappers.query(dicMarryJob));
		page.setTotal(baseMapper.selectCount(Wrappers.query(dicMarryJob)));
		return pages;
	}
}